package com.hxunicorn.btc.api.controller.biz;

import com.hxunicorn.btc.core.customer.service.IBizRptService;
import com.hxunicorn.common.annotation.ServerApiGlobalAnnotation;
import com.hxunicorn.common.entity.ResultResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 墨塵
 * @since 2025/3/6
 */
@RestController
@RequestMapping("/rpt")
@Api(value = "上报controller", tags = {"上报操作接口"})
public class BizRptController {

    @Resource
    private IBizRptService bizRptService;

    @GetMapping("/rptDate")
    @ServerApiGlobalAnnotation(note = "上报数据", mustLogin = false)
    @ApiOperation(value = "上报数据", notes = "上报数据", response = ResultResponse.class)
    public ResultResponse rptDate() {
        bizRptService.rptDate();
        return ResultResponse.success();
    }
}
